package com.group.transaction.mapper;

import com.group.transaction.domain.IntegralLog;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 积分日志数据访问层
 *
 * @author YunXing Pang
 * @date 2020/5/1
 */
public interface IntegralLogMapper extends Mapper<IntegralLog> {

    IntegralLog queryIntegralLogByLogisticsId(Long logisticsId);

    /**
     * 查询用户积分日志
     * @return
     */
    List<IntegralLog> queryIntegralLogByUserId(IntegralLog integralLog);

    /**
     * 查询用户积分日志总数
     * @return
     */
    Integer queryIntegralLogTotalByUserId(IntegralLog integralLog);

}